package org.tinygroup.bizframe.business.inter;

import org.tinygroup.bizframe.dao.inter.pojo.TreeData;
import org.tinygroup.bizframe.dao.inter.pojo.TsysBranchUser;
import org.tinygroup.jdbctemplatedslsession.daosupport.OrderBy;
import org.tinygroup.tinysqldsl.Pager;

import java.util.List;


/**
 * Created by Mr.wang on 2016/7/14.
 */
public interface SysBranchUserBusiness {

    int deleteByKeys(String... pks);

    Pager<TsysBranchUser> getPager(int start, int limit, TsysBranchUser tsysBranchUser, final OrderBy... orderBies);

    TsysBranchUser add(TsysBranchUser tsysBranch);

    int update(TsysBranchUser tsysBranch);

    boolean checkExists(TsysBranchUser tsysBranch);

    List<TsysBranchUser> getList(TsysBranchUser tsysBranch);
    
    List getTreeData(TreeData tree);
    
//    boolean checkSubBranchExist(TsysBranchUser sysBranch);
}
